package com.fz.us.admin.company.service;

import com.fz.us.admin.base.service.BaseService;
import com.fz.us.admin.company.dto.CompanyDto;
import com.fz.us.admin.company.entity.Company;
import com.fz.us.admin.company.entity.User;

/**
 * Service接口 - 企业
 * ============================================================================
 * 版权所有 2016 。
 *
 * @author fallenpanda
 * @version 1.0 2016-08-02 。
 * ============================================================================
 */
public interface CompanyService extends BaseService<Company, String> {

    /**
     * 创建企业
     *
     * @param name
     * @param user
     * @return
     */
    public Company createCompany(String name, User user);

    /**
     * entity to dto
     *
     * @param company
     * @return
     */
    public CompanyDto entityToDto(Company company);

}